package com.apusic.service;

import java.util.List;

import com.apusic.dao.BaseVersionDao;
import com.apusic.entity.BaseVersion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("baseVersionService")
@Transactional
public class BaseVersionService {
	
	@Autowired
	private BaseVersionDao baseVersionDao;

	public List<BaseVersion> selectByObj(BaseVersion bVersion) {
		return baseVersionDao.selectByObj(bVersion);
	}

	public List<BaseVersion> selectByObjList(BaseVersion bVersion) {
		return baseVersionDao.selectByObjList(bVersion);
	}

	public void saveVersion(BaseVersion bVersion) {
		baseVersionDao.insert(bVersion);
	}

	public void updateVersion(BaseVersion bVersion) {
		baseVersionDao.updateByPrimaryKeySelective(bVersion);
		
	}

}
